home *** CD-ROM | disk | FTP | other *** search
/ Catch That Kid Press Kit / Catch That Kid Press Kit.iso / pc / notes / credits.swf / scripts / frame_2 / DoAction_3.as < prev    next >
Encoding:
Text File  |  2003-12-16  |  460 b   |  19 lines

  1. FPModel = function()
  2. {
  3.    this.currentPage = 0;
  4.    this.numPages = 0;
  5.    this.dpi = _root.dpi;
  6.    this.width = 0;
  7.    ASBroadcaster.initialize(this);
  8. };
  9. FPModel.prototype.addPage = function(width_i, height_i)
  10. {
  11.    this.numPages = this.numPages + 1;
  12.    this.broadcastMessage("onAddPage",width_i,height_i);
  13. };
  14. FPModel.prototype.setPage = function(pageNum_i)
  15. {
  16.    this.currentPage = pageNum_i;
  17.    this.broadcastMessage("onSetPage",pageNum_i);
  18. };
  19.